package com.ruoyi.people.recharge.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充值记录对象 recharge
 * 
 * @author ruoyi
 * @date 2025-06-07
 */
public class Recharge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值id */
    @Excel(name = "充值id")
    private Long rechargeId;

    /** 充值用户id */
    @Excel(name = "充值用户id")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String username;

    /** 充值套餐 */
    @Excel(name = "充值套餐")
    private Long packId;

    /** 充值套餐 */
    @Excel(name = "充值套餐名称")
    private String packName;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rechargeTime;
    /** 开始时间（用于范围查询） */
    private String beginTime;

    /** 结束时间（用于范围查询） */
    private String endTime;

    public void setRechargeId(Long rechargeId) 
    {
        this.rechargeId = rechargeId;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Long getRechargeId()
    {
        return rechargeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPackId(Long packId)
    {
        this.packId = packId;
    }

    public Long getPackId() 
    {
        return packId;
    }

    public String getPackName() {
        return packName;
    }

    public void setPackName(String packName) {
        this.packName = packName;
    }

    public void setRechargeTime(Date rechargeTime)
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rechargeId", getRechargeId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("packId", getPackId())
             .append("packName", getPackName())
            .append("rechargeTime", getRechargeTime())
            .append("beginTime",getBeginTime())
            .append("endTime",getEndTime())
            .toString();
    }
}
